// 序列化参数,node模块提供的
import qs from 'qs';

// 统一管理项目接口地址
import request from './request.js';

// 登录
export const doLoginApi = (data) => request.post("/doLogin",qs.stringify(data));

export const doLogoutApi = () => request.post("/doLogout");

//获取用户积分信息
export const getIntergralApi = () => request.get("/intergral/get");

//签到积分+1
export const incrIntergralApi = ()=> request.post("/intergral/incr");

//积分扣除
export const decrIntergralApi = (data)=> request.post("/intergral/decr/",qs.stringify(data));